package com.base_data_handler.function.air;

public class AirLevel {

	
	public static String aqiLevel(int aqi){
		if(0<=aqi&&aqi<=50){
		 return "一级";	
		}else if(51<=aqi&&aqi<=100){
		 return "二级";	
		}else if(101<=aqi&&aqi<=150){
			 return "三级";
		}else if(151<=aqi&&aqi<=200){
			 return "四级";
		}else if(201<=aqi&&aqi<=300){
			 return "五级";
		}else if(aqi>300){
			return "六级";
		}
		return "一级";
		
	} 
	
	public static String aqiQuality(String level){
		switch (level) {
		case "一级":
			return "优";
		case "二级":
			return "良";
		case "三级":
			return "轻度污染";
		case "四级":
			return "中度污染";
		case "五级":
			return "重度污染";
		case "六级":
			return "严重污染";
		}
		return "";
	} 
}
